package com.bill99.golden.inf.sso.dao;

import java.util.HashMap;
import java.util.Map;

import com.bill99.inf.ibatis.Dao;

public class BaseDao {
	protected Dao dao;
	private static final String SSO_SEQ_NAME = "SEQ_SSO_NEW";

	public void setDao(Dao dao) {
		this.dao = dao;
	}

	public Long getSequence(String seqName) {
		Map m = new HashMap();
		m.put("seqName", seqName);
		return (Long) dao.queryForObject("baseSql.getSequence", m);
	}

	public Long getSsoSeqId() {
		return this.getSequence(SSO_SEQ_NAME);
	}
}
